#!/usr/bin/env bash

# chkconfig: 2345 99 01
# description: Juniper Kubernetes Network Manager

if [ -e /tmp/supervisord_kubernetes.sock ]; then
    supervisorctl -s unix:///tmp/supervisord_kubernetes.sock ${1} `basename ${0}`
else
    supervisorctl -s unix:///var/run/supervisord_kubernetes.sock ${1} `basename ${0}`
fi
